import java.util.*;
public class Main{
    public static void main(String[] args){
        int Sumscore = 0;
        int lengthscore = 0;
        int zifuscore = 0;
        int numberscore = 0;
        int charscore = 0;
        int countBIGchar = 0;
        int jianliscore = 0;
        int countSMALLchar = 0;
        int countnumber = 0;
        int countzifu = 0;
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int n = str.length();
        if(n<=4){
            lengthscore = 5;
        }else if(n>=5&&n<=7){
            lengthscore = 10;
        }else{
            lengthscore = 25;
        }
        for(int i = 0;i<str.length();i++){
            if(str.charAt(i)>='a'&&str.charAt(i)<='z'){
                countSMALLchar++;
            }else if(str.charAt(i)>='A'&&str.charAt(i)<='Z'){
                countBIGchar++;
            }else if(str.charAt(i)>='0'&&str.charAt(i)<='9'){
                countnumber++;
            }else{
                countzifu++;
            }
        }

        if(countBIGchar==0&&countSMALLchar==0){
            charscore = 0;
        }else if((countBIGchar==0&&countSMALLchar!=0)||(countBIGchar!=0&&countSMALLchar==0)){
            charscore = 10;
        }else{
            charscore = 20;
        }

        if(countnumber==0){
            numberscore = 0;
        }else if(countnumber==1){
            numberscore = 10;
        }else if(countnumber>1){
            numberscore = 20;
        }

        if(countzifu==0){
            zifuscore = 0;
        }else if(countzifu==1){
            zifuscore = 10;
        }else if(countzifu>1){
            zifuscore = 25;
        }

        if(countBIGchar!=0&&countSMALLchar!=0&&countnumber!=0&&countzifu!=0){
            jianliscore = 5;
        }else if((countBIGchar==0&&countSMALLchar!=0)||(countBIGchar!=0&&countSMALLchar==0)&&countnumber!=0&&countzifu!=0){
            jianliscore = 3;
        }else if((countBIGchar==0&&countSMALLchar!=0)||(countBIGchar!=0&&countSMALLchar==0)&&countnumber!=0&&countzifu==0){
            jianliscore = 2;
        }

        Sumscore = lengthscore+zifuscore+numberscore+charscore+jianliscore;

        if(Sumscore>=90){
            System.out.println("VERY_SECURE");
        }else if(Sumscore>=80&&Sumscore<90){
            System.out.println("SECURE");
        }else if(Sumscore>=70&&Sumscore<80){
            System.out.println("VERY_STRONG");
        }else if(Sumscore>=60&&Sumscore<70){
            System.out.println("STRONG");
        }else if(Sumscore>=50&&Sumscore<60){
            System.out.println("AVERAGE");
        }else if(Sumscore>=25&&Sumscore<50){
            System.out.println("WEAK");
        }else{
            System.out.println("VERY_WEAK");
        }
    }
}